package com.ws.shop.dao;

import java.util.List;

import com.ws.shop.bean.Page;
import com.ws.shop.entity.Letter;

public interface LetterDao {

	public Page findLetterListPage(long pageno,int pagesize);

	public void sendAllLetter(Letter letter);

	public void sendLetter(Letter letter);

	public List<Letter> getLetters(int type,String username);
	
	public int updateState(int type,String username);
	
	public int delLetter(int type,long id,String username);
	
	public int sendMessage(Letter letter);
	
	public int getLetterCount(String name,int state );
	
	public Page getLetterByUserId(long pageno, int pagesize,String username);
	
}
